package com.bjpowernode.rbac.service;

import com.bjpowernode.rbac.entity.Employee;
import com.bjpowernode.rbac.query.EmployeeQuery;
import com.bjpowernode.rbac.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author jy
 * @version 1.0
 * @date 2022/2/8 18:41
 */
public interface EmployeeService {

    /**
     * 调用业务层获取数据
     * @param employeeQuery
     * @return
     */
    PageInfo<Employee> selectEmployeeByCondition(EmployeeQuery employeeQuery);

    Employee selectEmpById(Long id);

    void saveOrUpdate(Employee employee, Long[] roleIds);

    void delete(Long id);

    void login(String username, String password);

    void logout();

    List<Employee> selectAllSellers();

    List<Employee> selectAllNewSellers();
}
